package pe.edu.upc.dsd.jjjar.upcbank.server.database;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import pe.edu.upc.dsd.jjjar.upcbank.resources.client.model.Cuenta;
import pe.edu.upc.dsd.jjjar.upcbank.resources.client.model.UserProfile;

public class DataBase {

	public static List<UserProfile> profiles;
	public static HashMap<String, List<Cuenta>> accounts;
	
	static {
		profiles = new ArrayList<UserProfile>();
		
		UserProfile userProfile = new UserProfile();
		userProfile.setData(1, "111", "RICARDO MARTIN", "RODRIGUEZ GARCIA", "rrodriguezgarcia@gmail.com");
		profiles.add(userProfile);

		userProfile = new UserProfile();
		userProfile.setData(2, "222", "ANDREA", "SALAZAR CUADROS", "Andrea.SalazarCuadros@gmail.com");
		profiles.add(userProfile);
		
		userProfile = new UserProfile();
		userProfile.setData(3, "333", "JOSE LUIS", "LANDIN SALAS", "jose.landin84@gmail.com");
		profiles.add(userProfile);
		
		userProfile = new UserProfile();
		userProfile.setData(4, "444", "JAVIER", "GARCIA", "javicrack20@gmail.com");
		profiles.add(userProfile);
		
		userProfile = new UserProfile();
		userProfile.setData(5, "555", "JOSE CARLOS", "FREYRE", "jose.carlos.freyre@gmail.com");
		profiles.add(userProfile);
		
		
		accounts = new HashMap<String, List<Cuenta>>();
		
		List<Cuenta> accountList = new ArrayList<Cuenta>();
		accountList.add(new Cuenta("1111", "AHORRO", "1111 (AHORRO)", new Double(5000), "PEN"));
		accountList.add(new Cuenta("1112", "AHORRO", "1112 (AHORRO)", new Double(10), "PEN"));
		accountList.add(new Cuenta("1113", "AHORRO", "1113 (AHORRO)", new Double(20), "PEN"));
		accountList.add(new Cuenta("1114", "AHORRO", "1114 (AHORRO)", new Double(30), "PEN"));
		accounts.put("111", accountList);
		
		accountList = new ArrayList<Cuenta>();
		accountList.add(new Cuenta("2221", "AHORRO", "2221 (AHORRO)", new Double(100), "PEN"));
		accounts.put("222", accountList);
		
		accountList = new ArrayList<Cuenta>();
		accountList.add(new Cuenta("3331", "AHORRO", "3331 (AHORRO)", new Double(200), "PEN"));
		accounts.put("333", accountList);
		
		accountList = new ArrayList<Cuenta>();
		accountList.add(new Cuenta("4441", "AHORRO", "4441 (AHORRO)", new Double(150), "PEN"));
		accounts.put("444", accountList);
		
		accountList = new ArrayList<Cuenta>();
		accountList.add(new Cuenta("5551", "AHORRO", "5551 (AHORRO)", new Double(199), "PEN"));
		accounts.put("555", accountList);
		
		
	}
	
}
